package com.pengshun.modules.api.user.repository;

import com.pengshun.modules.domain.Citizen;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

public interface CitizenRepository extends JpaRepository<Citizen, Long>, JpaSpecificationExecutor<Citizen> {

    /**
     * 根据用户id查询实名认证信息
     * @param userId
     * @return
     */
    Citizen findByUserId(Long userId);

}
